﻿using IntelligentFiles.HcControl;
using IntelligentFiles.HcForm;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace IntelligentFiles
{
    public partial class User : Form
    {
        public User()
        {
            InitializeComponent();
        }


        private void pic_logo_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void showFiles()
        {
            for (int i = 0; i < 10; i++)
            {
                fileInfo fi = new fileInfo();
                //计算坐标
                int Y = (5 + fi.Height) * i + 5 ;
                fi.Location = new Point(2, Y);
                fi.setInfo("案件名称" + (i + 1), "2020613" + i, "2020-6-13 10:10:1"+i, "A0" + (i + 1));
                panel_file.Controls.Add(fi);
            }
        }

        private void User_Load(object sender, EventArgs e)
        {
            showFiles();
        }

        private void btn_previous_Click(object sender, EventArgs e)
        {
            MessageBox.Show("上一页");

        }

        private void btn_next_Click(object sender, EventArgs e)
        {
            MessageBox.Show("下一页");
        }

        private void btn__operation_Click(object sender, EventArgs e)
        {
            Opearttion_file of = new Opearttion_file();
            of.Show();
        }

        private void btn_seeBox_Click(object sender, EventArgs e)
        {
            Box_User bu = new Box_User();

            bu.ShowDialog(); ;
        }
    }
}
